<%@ page import="java.util.Map"%>
<html>
<head>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<title>Report Sample</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta http-equiv="Expires" content="0">
<meta http-equiv="Pragma" content="no-cache">
</head>
<%@include file="../include/CrystalReportHelper.jsp"%>
<body>
	<%! private String reportName;%> 
	<%   try{
			//String deptId = session.getAttribute("deptId").toString();
			Map map = (Map)session.getAttribute("param");
			reportName = map.get("type").toString();
			ReportClientDocument clientDoc = getClientDocument(reportName);
			try{
				if(reportName=="Ijest3.rpt"){
					setDocParameter(0, map.get("deptId").toString(), clientDoc);
					//System.out.println("=========="+map.get("deptId").toString());
				}
				viewReport(clientDoc, request, response, session);
			}catch(Exception e){
				e.printStackTrace();
			}finally{
				clientDoc.close();
				clientDoc.dispose();
			}
		}catch(Exception e){
			e.printStackTrace();
		}
	%>
</body>
</html>